<template>
  <div>
    <el-card class="mb20" shadow="never">
      <task-form @search="handleSearch" ref="taskForm" />
    </el-card>
    <el-card shadow="never">
      <task-list ref="taskList" />
    </el-card>
  </div>
</template>

<script>
import TaskForm from './PlanForm'
import TaskList from './PlanList'

export default {
  components: {
    TaskForm,
    TaskList
  },
  methods: {
    handleSearch(obj) {
      console.log('obj', obj)
      this.$refs.taskList.getPlanList(obj)
    }
  }
}
</script>
